<?php

class Tb_Games_Bankers extends Models {

    private $_name = "games_bankers";
    const UPDATED = 1;
    /*
     * Get sources
     */
    public function get($params = array()) {
        $query = 'SELECT * FROM ' . $this->_name. '
                  WHERE status != '.self::UPDATED;
        $sources = $this->fetchArray($query);
        return $sources;
    }

    public function insertInfo($params) {
        $query = 'INSERT INTO '.$this->_name.'
                            (
                                id_game,
                                id_banker,
                                date,
                                ou,
                                mo,
                                mu,
                                ft,
                                moft,
                                muft,
                                europe_win,
                                europe_blance,
                                uurope_lost
                            )
                  VALUE()
            ';
        return $this->query($query);
    }
    public function updateInfo($params) {
        $query = 'UPDATE '.$this->_name.'
                  SET status = '.self::UPDATED.'
                  WHERE id = '.$id;
        return $this->query($query);
    }
    public function deleteInfoByIdGame($params) {
    }
}